<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../scripts/itsm/news/categoryMain.js"></script>
</head>
<body>
<div id="categoryMainGridToolbar" style="padding: 0px;display: none;">
&nbsp;<a onclick="itsm.news.categoryMain.openAddWin()" class="easyui-linkbutton" id="categoryMainGrid_add" icon="icon-add" plain="true">添加</a>
<a onclick="itsm.news.categoryMain.openEditWin()" class="easyui-linkbutton" id="categoryMainGrid_edit" icon="icon-edit" plain="true">修改</a>
<a onclick="itsm.news.categoryMain.deleteCategory()" class="easyui-linkbutton" id="categoryMainGrid_del" icon="icon-cancel" plain="true">删除</a>
<a onclick="itsm.news.categoryMain.openSearchWin()" class="easyui-linkbutton" id="categoryMainGrid_search" icon="icon-search" plain="true">搜索</a>
</div>
<table id='categoryMainGrid'></table>
<div id='categoryMainPager'></div>

<%-- 添加、编辑 --%>
<div title="添加/编辑分类" id="categoryMain_add_win" class="easyui-window" closed="true" collapsible="false" modal="true" minimizable="false" maximizable="false" collapsible="false" style="width:400px; height:auto;padding:3px">
	<form id="categoryMain_add_form">	
	<input name="categoryDTO.categoryId" id="categoryMain_categoryId" type="hidden" />
	<table>
		<tr>
			<td>栏目</td>
			<td><select name="categoryDTO.topicId" id="categoryMain_topicId"></select> </td>
		</tr>
		<tr>
			<td>分类名称</td>
			<td><input name="categoryDTO.categoryName" id="categoryMain_categoryName"  class="easyui-validatebox input" required="true"/></td>
		</tr>
		<tr>
			<td>排序</td>
			<td><input name="categoryDTO.categoryOrder" id="categoryMain_categoryOrder"  class="easyui-validatebox input" value="0" required="true"/></td>
		</tr>
		<tr>
			<td>固定类型</td>
			<td>
				<select name="categoryDTO.categoryCode" id="categoryMain_categoryCode">
					<option value="">--请选择--</option>
					<option value="NewNotice">最新公告</option>
					<option value="IndustryNews">行业新闻</option>
					<option value="NewDynamic">最新动态</option>
					<option value="CompanyProfile">公司简介</option>
					<option value="CorporateCulture">企业文化</option>
					<option value="Wealthprogram">财富方案</option>
				</select>
			</td>
		</tr>
		<tr>
			<td>描述</td>
			<td>
				<textarea style="height: 50px;width: 98%" id="categoryMain_description" name="categoryDTO.description"></textarea>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
				<a class="easyui-linkbutton" icon="icon-save" id="link_user_save" href="javascript:itsm.news.categoryMain.saveCategory()">保存</a>
			</td>
		</tr>
	</table>
	</form>
</div>

<%-- 分类搜索 --%>
<div title="分类搜索 " id="categoryMain_search_win" class="easyui-window" closed="true" collapsible="false" modal="false" minimizable="false" maximizable="false" collapsible="false" style="width:400px; height:auto;padding:3px">
	<form id="categoryMain_search_form">	
	<table>
		<tr>
			<td>栏目</td>
			<td><select name="categoryDTO.topicId" id="categoryMainSearch_topicId"></select></td>
		</tr>
		<tr>
			<td>分类名称</td>
			<td><input name="categoryDTO.categoryName" class="input"/></td>
		</tr>
		<tr>
			<td>分类编码</td>
			<td><input name="categoryDTO.categoryCode" class="input"/></td>
		</tr>
		<tr>
			<td>描述</td>
			<td>
				<input name="categoryDTO.description" class="input"/>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<a class="easyui-linkbutton" icon="icon-save" href="javascript:itsm.news.categoryMain.searchCategory()">搜索</a>
			</td>
		</tr>
	</table>
	</form>
</div>


</body>
</html>